package com.ktjy.ktmall.entity;

import java.util.List;

/**
 * 规格属性实体类,它与t_attr属性表对应
 * @version v1.0
 * @Author 郴州科泰
 * @Create 2024-07-23 - 10:43
 */
public class AttrItem {
    private int id;  // 属性id
    private String name;  // 属性名
    private int orderNum; //排序值
    private int enabled;  // 状态(0:正常 1:禁用)
    private String createTime;  // 创建时间
    private String updateTime;  // 修改时间

    // 规格属性值列表, 每一个规格属性下会一个有规格属性值铺
    private List<AttrValues> values;

    public AttrItem() {
    }

    public AttrItem(int id, String name, int orderNum, int enabled, String createTime, String updateTime) {
        this.id = id;
        this.name = name;
        this.orderNum = orderNum;
        this.enabled = enabled;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public int getEnabled() {
        return enabled;
    }

    public void setEnabled(int enabled) {
        this.enabled = enabled;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public List<AttrValues> getValues() {
        return values;
    }

    public void setValues(List<AttrValues> values) {
        this.values = values;
    }
}
